package routes

import (
	"github.com/iris-contrib/middleware/csrf"
	"github.com/irisProject/bootstrap"
	"github.com/irisProject/config"
)

var (
	appKey  = config.Conf.Section("app").Key("app_key").String()
	protect = csrf.Protect([]byte(appKey), csrf.Secure(false))
)

func Configure(app *bootstrap.App) {
	adminRoutes(app)
	userRoutes(app)
	ApiRoutes(app)
}
